<?php
/*qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
 q                                                                                                q
 q                                                                                                q
 q     This file is part of Tree CMS.                                                             q
 q     Copyright (c) 2018. Tom Wippich (theman@avareborn.de)                                      q
 q                                                                                                q
 q     Tree CMS is free software: you can redistribute it and/or modify                           q
 q     it under the terms of the GNU General Public License as published by                       q
 q     the Free Software Foundation, either version 3 of the License, or                          q
 q     (at your option) any later version.                                                        q
 q                                                                                                q
 q     Tree CMS is distributed in the hope that it will be useful,                                q
 q     but WITHOUT ANY WARRANTY; without even the implied warranty of                             q
 q     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                              q
 q     GNU General Public License for more details.                                               q
 q                                                                                                q
 q     You should have received a copy of the GNU General Public License                          q
 q     along with Tree CMS.  If not, see <https://www.gnu.org/licenses/>                          q
 q                                                                                                q
 qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq*/

#if (dir("install") == true) {
#    header("HTTP/1.1 302 Moved");
#    header("location: ./install/index.php");
#}
?>

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <?php
    echo "<title>";
    //TODO: Load title of db
    echo $_SERVER['HTTP_HOST'];
    echo "</title>\n";
    //TODO: Load icon of db
    echo '<link rel="Shortcut Icon" href="favicon.ico" />';
    echo '<link rel="stylesheet" href="css/style.css">';

    ?>
</head>
<body class="background">


<div id="outsite">

    <div class="site">
        <div class="header">
            <div class="logo">
                <a href="http://<?php echo $_SERVER['HTTP_HOST']; ?>">
                    <img src="images/header.png" alt="Logo" width=max height="150"></a></div>
            <nav class="navbar">
                <ul>
                    <li><a href="#1" target="_self">Login</a></li>
                    <li><a href="#2" target="_self">Register</a></li>
                    <li><a href="#3" target="_self">Some placeholder</a></li>
                    <li class="navbar right"><a href="#4" target="_self">Logout</a></li>
                </ul>
            </nav>
        </div>
        <div class="content">
            <menu>
                <p>This is some text</p><br/>
                <p>it's here for</p><br/>
                <p>filling this</p><br/>
                <p>site</p>
            </menu>
            <aside>
                <p>Yeah this is</p><br/>
                <p>a sidebar </p><br/>
                <p>or something else</p><br/>
                <p>i don't really know</p>
            </aside>
        </div>
    </div>
</div>
</body>
</html>

